package com.bwie.service.imp;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bwie.mapper.GoodsMapper;
import com.bwie.pojo.Goods;
import com.bwie.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements GoodsService {

    @Autowired
    private GoodsMapper goodsMapper;


    @Override
    public void UpdateNums(Integer goodsNums) {
        goodsMapper.UpdateNums(goodsNums);
    }

    @Override
    public void updatePrice(Double goodsPrice) {
        goodsMapper.updatePrice(goodsPrice);
    }
}
